package com.tedu.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.tedu.service.UserService;
import com.tedu.util.UserResult;

@Controller
public class SaveUserController {
	@Resource
	private UserService service;
	
	@RequestMapping("save.do")
	@ResponseBody
	public UserResult execute(String name,String password,String phon){
		UserResult result=service.saveUser(name, password, phon);
		return result;
	}
	
}
